Seems like I should use Python for my distributed computing project... Context: https://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python